package com.itheima.demo02;

import org.w3c.dom.ls.LSOutput;

public abstract class Car {
    /*
    |--汽车类：
			|--奔驰车
			|--宝马车
			属性：品牌、价格
    行为：运行
     */
    private String brand;
    private int price;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Car() {
    }

    public Car(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public abstract void run();
}
